// 测试手机为红米note10 pro，autojsPro版本8.8.22-common
var appName = "War Robots";
//var appName = "biubiu加速器";
//关闭应用
killApp();
launchApp(appName);
sleep(2000);
exit();

function killApp() {
    let packageName = currentPackage();
    app.openAppSetting(packageName);
    text(app.getAppName(packageName)).waitFor();  
    sleep(500);
    click(570,510);
    sleep(500);
    click(790,1090);
}